package net.lab1024.sa.admin.module.business.outbound.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 出库单明细 新建表单
 *
 * @Author zzx
 * @Date 2025-08-13 15:21:31
 * @Copyright zzx
 */

@Data
public class OutboundItemAddForm {

    @Schema(description = "位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "位置 不能为空")
    private String itemPosition;

    @Schema(description = "品名")
    private String itemProductName;

    @Schema(description = "长")
    private BigDecimal itemLong;

    @Schema(description = "宽")
    private BigDecimal itemWidth;

    @Schema(description = "高")
    private BigDecimal itemHeight;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "单位 不能为空")
    private String itemUnit;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量 不能为空")
    private Integer itemNum;

    @Schema(description = "备注")
    private String remark;

}